package com.lh.mapper;

import com.lh.my.mapper.MyMapper;
import com.lh.pojo.ItemsComments;
import com.lh.pojo.vo.ItemCommentVO;
import com.lh.pojo.vo.MyCommentVO;
import com.lh.pojo.vo.SearchItemsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsCommentsExtMapper extends MyMapper<ItemsComments> {

    /**
     * 获取全部评论详情
     * @param map
     * @return
     */
    List<ItemCommentVO> getComments(@Param("map") Map<String, Object> map);

    /**
     * 保存商品的评价
     * @param map
     */
    void saveComments(Map<String, Object> map);

    List<MyCommentVO> getCommentByUserId(@Param("userId") String userId);
}